<%@ Page CodeFile="COIOverview.aspx.cs" Inherits="PHSRAG.Insight21.COI.COIOverview"
	Language="c#" %>

<%@ Register Src="../FormsManagement/Controls/QuestionnaireViewer.ascx" TagName="QuestionnaireViewer"
	TagPrefix="uc1" %>
<%@ Register Assembly="PHSRAG.Insight21.InsightWebControls" Namespace="PHSRAG.Insight21.InsightWebControls"
	TagPrefix="cc1" %>
<%@ Register Assembly="PHSRAG.WebControls" Namespace="PHSRAG.WebControls" TagPrefix="cc2" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>COI - Overview</title>
	<link href="../Insight21.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript">
	    function ShowSubmissionAlert()
	    {
	        if (confirm('All forms have been completed, click OK to electronically sign your form. Click Cancel only if you need to update a response.'))
	        {
	            document.getElementById('redirectToSubmissionPage').value = 'true';
	            document.forms[0].submit();
	        }
//	        else
//	        {
//				document.body.onbeforeunload = ConfirmNavigateAway;
//	        }
	    }
//	    function ConfirmNavigateAway()
//	    {
//			return "You have not submitted your COI. Are you sure you want to exit? (Please refresh your browser after clicking on Cancel, to be able to submit the COI.)";
//	    }
	</script>
</head>
<body >
<form id="Form1" runat="server" method="post">
    <table cellpadding="0" class="Container" width="100%">
        <tr>
            <td>
            <asp:Panel ID="headerSection" runat="server" Width="100%">
                <table class="header" width="100%">
                    <tr>
                        <td>
                            <cc1:Header ID="header" runat="server" />
                        </td>
                    </tr>
                    <tr style="display: none">
                        <td>
                            <cc1:CoISubNavigation ID="coiSubNavigation" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <cc1:COISubModNavigation ID="coiSubModNavigation" runat="server" />
                        </td>
                    </tr>
                </table>
                <br />
                <table width="100%">
                    <tr>
                        <td>
                            <cc2:BreadCrumb ID="breadCrumb" runat="server" HighlightCurrentPage="true" />
                        </td>
                    </tr>
                </table>
            </asp:Panel>
            <table>
                <tr>
                    <td>
                        <cc2:Annunciator ID="annunciator" runat="server" />
                    </td>
                </tr>
            </table>
            <table>
                <tr>
                    <td>
                        <cc2:PostbackGuard ID="postbackGuard" runat="server" />
                    </td>
                </tr>
            </table>
            <table cellpadding="10" cellspacing="10" style="background-color: #ffffff" width="100%">
                <tr>
                    <td>
                        <cc2:ExpandingPanel ID="helpContainer" runat="server" ExpansionToggler="expansionToggler">
                            <StaticTemplate>
                                <table class="Search" width="100%">
                                    <tr>
                                        <td>
                                            <table id="expandedSearch" runat="server" width="100%">
                                                <tr>
                                                    <td>
                                                        From this page, you may provide updated information about the relationships you previously disclosed, 
                                                        input new information, and/or determine which disclosure forms still need to be completed. 
                                                        <br />Please click Show Instructions for more details.
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="panelSeparator"></td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <cc2:ExpansionToggler ID="expansionToggler" runat="Server" CollapsedImage="~/Images/Arrow_RT.gif" CollapsedLinkCaption="Show Instructions" ExpandedImage="~/Images/Arrow_DN.gif" ExpandedLinkCaption="Hide Instructions" />
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                            </StaticTemplate>
                            <DynamicTemplate>
                                <table class="SearchDynamic">
                                    <tr>
                                        <td>
                                            Click the Update button in the Action Column to add information 
                                            or review previous disclosures. &nbsp;You may also click the Add New 
                                            link (within the gold header) for the applicable form to add a 
                                            relationship that has not been previously reported.												
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>&nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td>
                                            Click the Remove button in the Action Column if you no longer 
                                            have a financial relationship with a particular company.
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>&nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td>
                                            The check marks in the Form Complete column indicate which 
                                            forms you have fully answered. &nbsp;If you do not have a check 
                                            mark next to a particular disclosure, please click the Update 
                                            button to finish the form. &nbsp;Once you have completed all of 
                                            your forms, you will be prompted to submit your electronic 
                                            signature.
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>&nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td>
                                        If you have questions, please contact Anne Botelho at 
                                        617.643.4494 or email <a href="mailto:COIAdmin@partners.org">COIAdmin@partners.org</a>.
                                        </td>
                                    </tr>
                                </table>
                            </DynamicTemplate>
                        </cc2:ExpandingPanel>
                    </td>
                </tr>
            </table>
            <table cellpadding="10" cellspacing="10" width="100%">
                <tr>
                    <td>
                        <asp:Label ID="ProgressText" runat="server" Font-Bold="true" Font-Size="Medium" ForeColor="Red"></asp:Label>
                    </td>
                </tr>
            </table>                                                                                    
            <table cellpadding="10" cellspacing="10">
                <tr>
                    <td colspan="2">
                        <asp:DataGrid ID="chartsGrid" runat="server" AutoGenerateColumns="False" CellSpacing="0" CssClass="DataGrid" Width="100%">
                            <AlternatingItemStyle CssClass="DataGridAlternatingItem" />
                            <ItemStyle CssClass="DataGridItem" />
                            <HeaderStyle CssClass="DataGridHeader" />
                            <Columns>
                                <asp:BoundColumn DataField="Id" Visible="False"></asp:BoundColumn>
                                <asp:BoundColumn DataField="QuestionnaireVersionId" Visible="False"></asp:BoundColumn>
                                <asp:BoundColumn DataField="RedirectToEntitySelection" Visible="False"></asp:BoundColumn>
                                <asp:TemplateColumn HeaderText="Form" HeaderStyle-Font-Bold="true" HeaderStyle-Font-Size="Small" ItemStyle-Wrap="false">
                                    <ItemTemplate>
                                        <asp:Label ID="headerName" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Name") %>'>
                                        </asp:Label>&nbsp;&nbsp;
                                        <asp:LinkButton ID="addNew" runat="server" CausesValidation="false" CommandName="SelectForm" Text=">> Add New" Visible="false"></asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateColumn>
                                <asp:BoundColumn DataField="LastModifiedDate" HeaderText="Last Modified" ReadOnly="True" HeaderStyle-Font-Bold="true" HeaderStyle-Font-Size="Small" HeaderStyle-Wrap="false">
                                </asp:BoundColumn>
                                <asp:BoundColumn DataField="StatusMeaning" HeaderText="Status" ReadOnly="True" HeaderStyle-Font-Bold="true" HeaderStyle-Font-Size="Small"></asp:BoundColumn>
                                <asp:TemplateColumn HeaderText="Status" Visible="False" HeaderStyle-Font-Bold="true" HeaderStyle-Font-Size="Small" ItemStyle-Wrap="false">
                                    <ItemTemplate>
                                        <asp:Label ID="lblQAStatus" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Status") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateColumn>
                                <asp:TemplateColumn HeaderText="Action" HeaderStyle-Font-Bold="true" HeaderStyle-Font-Size="Small" HeaderStyle-Wrap="false" ItemStyle-Wrap="false">
                                    <ItemTemplate>
                                        <asp:ImageButton ID="updateForm" runat="server" CausesValidation="false" CommandName="SelectForm" ImageUrl="~/images/b_update.gif" Visible="False" />
                                        <!-- OnClientClick="document.body.onbeforeunload = null;" -->
                                        <asp:ImageButton ID="removeForm" runat="server" CausesValidation="false" CommandName="RemoveForm" ImageUrl="~/images/b_remove.jpg" Visible="False" />
                                        <!-- OnClientClick="document.body.onbeforeunload = null;"-->
                                    </ItemTemplate>
                                </asp:TemplateColumn>
                                <asp:TemplateColumn HeaderText="Form Complete" ItemStyle-HorizontalAlign="Center" HeaderStyle-Font-Bold="true" HeaderStyle-Font-Size="Small" HeaderStyle-Wrap="false">
                                    <ItemTemplate>
                                        <asp:Label ID="FormStatusIndicatior" runat="server" Font-Bold="true"></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateColumn>
                            </Columns>
                            <PagerStyle Visible="False" />
                        </asp:DataGrid>
                    </td>
                </tr>
                <tr>
                    <td style="height: 12px">
                        <input id="redirectToSubmissionPage" runat="Server" type="hidden" value="false" />
                        <%--<input id="hiddenAllFormsCompleted" runat="server" type="hidden" value="true" />--%>
                    </td>
                </tr>
            </table>
            </td>
        </tr>
    </table>
</form>
</body>
</html>
